import dva from 'dva';
import './index.scss';
import router from './router';
// import browserHistory from 'history/createBrowserHistory';
import * as models from './models';

// 1. Initialize
const app = dva({
    // history: browserHistory()
});

// 2. Plugins
// app.use({});

// 3. Model
// console.log('启动history',browserHistory())
for(let m in models.default){
    app.model(models.default[m]);
}

// 4. Router
app.router(router);

// 5. Start
app.start('#root');
